#include "employee.h"

employee::employee(QObject *parent) : QObject(parent)
{

}

void employee::treat()
{
    qDebug()<<"请领导吃饭";
}

void employee::treat(QString foodName)
{
    //将QString类型的字符串转为char*，先将其转化成QByteArray[toUtf8()],再转化为char*[data()]
    qDebug()<<"请领导吃饭,吃"<<foodName.toUtf8().data();

}
